package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-物流公司
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum ExpressNameEnum {

    // 物流公司
    YUANTONG("1", "enum.expressName.name.yuantong", "yuantong"),


    SHUNFENG("2", "enum.expressName.name.shunfeng", "shunfeng"),


    BAISHI("3", "enum.expressName.name.baishi", "baishi"),
    ;

    private String code;
    private String name;
    private String attr;

    ExpressNameEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
